package dao.Impl;

import dao.PetDao;
import entity.Pet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component("petDao")
@Service("petService")
public class PetDaoMySQLlmpl implements PetDao {

    @Qualifier("petDaoMySQL")
    @Autowired
    private PetDao petDao;
    
    @Override
    public int insert(Pet pet) {
        System.out.println("将宠物“" + pet.getName() + "”插入到MySQL数据库");
        return 1;
    }
}
